<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 
See javadoc API for class org.thymeleaf.expression.Arrays

转换为数组，尝试推断数组组件类。请注意，如果结果数组为空，或者如果元素 目标对象不都属于同一类，此方法将返回对象[]。
${#arrays.toArray(object)}
转换为指定组件类的数组。
${#arrays.toStringArray(object)}
${#arrays.toIntegerArray(object)}
${#arrays.toLongArray(object)}
${#arrays.toDoubleArray(object)}
${#arrays.toFloatArray(object)}
${#arrays.toBooleanArray(object)}
计算长度
${#arrays.length(array)}
检查数组是否为空
${#arrays.isEmpty(array)}
检查数组中是否包含元素
${#arrays.contains(array, element)}
${#arrays.containsAll(array, elements)}
 -->
 <p th:text="${#arrays.toStringArray(object)} "></p>
 <p th:text="${#arrays.length(array)} "></p>
 <p th:text="${#arrays.isEmpty(array)} "></p>
 <p th:text="${#arrays.contains(array,1)} "></p>
 <p th:text="${#arrays.containsAll(array,array2)} "></p>
</body>
</html>